﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Traversing - Finding</title>
    <script src="script/jquery-1.3.2.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            $("p").find("span").addClass("link");
        });
    </script>
    <style type="text/css">
    .link
    {
        color:Red;
        text-decoration:none;
        font-weight:bold;
    }
    </style>
</head>
<body>
    <span>Hello jQuery</span>
    <p><span>Hello</span>, how are you?</p> 
    <p>Me? I'm <span>good</span>.</p>
    <div><span>Do you use jQuery?</span></div>
</body>
</html>
